<div>
    <p>
        Adds one or more error badges to the current Pipeline build.
        Warning badges text messages with an icon and an optional clickable hyperlink.
        Warning badges are often used to provide a visual indicator of additional status information about a Pipeline build.
        Warning badges added by <code>addWarningBadge</code> are displayed in the build history of the Pipeline job.
    </p>

    <strong><a id="badge-with-text">Example: Badge with text</a></strong>
    <p>
        The following example adds a warning badge with the text, "This is alarming":
        <pre><code>addWarningBadge text: 'This is alarming'</code></pre>
    </p>

    <strong><a id="badge-with-text-and-link">Example: Badge with text and link</a></strong>
    <p>
        The following example adds a warning badge with the text, "This is alarming" and a link:
        <pre><code>addWarningBadge text: 'This is alarming', link: 'https://issues.jenkins.io/browse/JENKINS-59646', target: '_blank'</code></pre>
    </p>
</div>
